In this article, you'll learn how the content type multipart/form-data differs in use from alternative content types, how the FormData interface works, how you can use it to send data to the server, and how you can write a simple server to receive and
Your solution uses the request module which includes support for form data. It would do this for you, if you would allow it, with no new dependencies other than the ones you've already included.
The FormData interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the fetch(), XMLHttpRequest.send() or navigator.sendBeacon() methods.
In this example we are constructing a form with 3 fields that contain a string, a buffer and a file stream. Also you can use http-response stream: Or @mikeal's request stream: In order to submit this form to a web application, call submit(url, [callba